export default (app) => {
    //自定义组件
    app.directive('permission', {
        mounted(el, binding, vnode, prevVnode) {
            // 如果binding.value==1，就显示el,否则隐藏el
            // console.log("permission",binding.value)
            if (binding.value == 1) {
                el.style.display = 'block'
            }
            else {
                el.style.display = 'none'
            }
        },
    })
}